<?php
include("admin_check.php");
include_once("../class/ulevel_class.php");
include_once("../class/system_class.php");
session_start();
header("Content-Type: text/html;charset=utf-8");
checkqx(6,21);
$_system=new system_class();
$sys=$_system->system_information(1);
if($_POST['button']){
	
	$us_update['yl4']=$_POST['yl4'];
	$us_update['yl22']=$_POST['yl22'];
	$us_update['yl23']=$_POST['yl23'];
	$us_update['yl11']=$_POST['yl11'];
	$us_update['yl12']=$_POST['yl12'];
	$us_update['yl13']=$_POST['yl13'];
	$us_update['yl14']=$_POST['yl14'];
	$us_update['yl15']=$_POST['yl15'];
	$us_update['yl18']=$_POST['yl18'];
	$us_update['yl19']=$_POST['yl19'];
	edit_update_cl('ulevel',$us_update,1);

    echo "<script language=javascript>alert('保存完成.');window.location.href='?'</script>";

}

?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/table.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
    <link href="../layui-master/dist/css/layui.css" rel="stylesheet" type="text/css">
    <script src="../layui-master/dist/layui.js"></script>
<title>级别参数</title>
</head>
<body>
<form name="form1" method="post" action="?">
<table width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="layui-table" lay-skin="line">
      <tr>
        <td width="18%" height="20" colspan="3" align="center"></td>
      </tr>
      <?php
      	$sql = "SELECT * FROM `ulevel` where ulevel=1";
		if($query = mysql_query($sql)){
			//$i=1;
			while ($row=mysql_fetch_array($query)){
	  ?>
      <tr>
        <td width="58%" height="10" colspan="3" align="center">第一部分</td>
      </tr>
       <tr>
        <td width="48%" align="right">直推奖：</td>
        <td  width="58%" align="left"><input name="yl4" type="text" value="<?=$row['yl4']?>" size="6" maxlength="20">元
        </td>
      </tr>
   
      <tr>
        <td width="48%" align="right">普通会员管理奖：</td>
        <td  width="58%" align="left"><input name="yl11" type="text" value="<?=$row['yl11']?>" size="6" maxlength="20">(%)
        </td>
      </tr>
      <tr>
         <td width="48%" align="right">金牌会员管理奖：</td>
         <td><input name="yl12" type="text" value="<?=$row['yl12']?>" size="6" maxlength="20">(%)</td>
      </tr>
      <tr>
        <td width="48%" align="right">钻石会员管理奖：</td>
        <td  width="58%" align="left"><input name="yl13" type="text" value="<?=$row['yl13']?>" size="6" maxlength="20">(%)
   
        </td>
      </tr>
      <tr>
        <td width="48%" align="right">服务中心补贴：</td>
        <td  width="58%" align="left"><input name="yl18" type="text" value="<?=$row['yl18']?>" size="6" maxlength="20">(%)
        </td>
      </tr>
      <tr>
        <td width="58%" height="10" colspan="3" align="center"><input name="button" type="submit" class="layui-btn layui-btn-warm" id="button" value="保存"></td>
      </tr>
      <?php
	  			//$i++;
			}
		}
	  ?>
    </table>



</form>
</body>
</html>
